//联合类型
{
  function css(ele: any, attr: string, value: string | number) {

  }

  const box = document.querySelector('div')
  if (box) {
    css(box, 'width', '100')
    css(box, 'option', '100')
    css(box, 'option', [1, 2])
  }
}
